package com.byyy.ccts.modules.api.convert;

import com.byyy.ccts.modules.api.entity.CompanyVo;
import com.byyy.ccts.modules.api.entity.OwnerVo;
import com.byyy.ccts.modules.sys.entity.Huoz;
import com.byyy.ccts.modules.sys.entity.Yez;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @projectName: TODO
 * @package: com.byyy.ccts.modules.api.convert
 * @className: CangkuConvert
 * @description: TODO
 * @author: LYB
 * @Date: 2023-01-10 9:34
 * @updateUser: LYB
 * @updateDate: 2023-01-10 9:34
 * @updateRemark:
 * @version: v1.0
 */
@Mapper(componentModel = "spring")
public interface YezConvert {

    YezConvert INSTANCE = Mappers.getMapper(YezConvert.class);

    @Mappings({
            @Mapping(source = "companyCode", target = "yezId"),
            @Mapping(source = "companyName", target = "yezName")
    })
    Yez companyToYez(CompanyVo companyVo);
}
